package com.rpc.netty.sample.server.service;


import com.rpc.netty.core.server.RpcService;
import com.rpc.netty.sample.protocol.HelloService;
import com.rpc.netty.sample.protocol.User;

@RpcService(HelloService.class)
public class HelloServiceImpl implements HelloService {

    public HelloServiceImpl(){

    }

    @Override
    public String hello(String name) {
        return "Hello! " + name;
    }

    @Override
    public String hello(User person) {
        return "Hello! " + person.getFirstName() + " " + person.getLastName();
    }
}
